﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Derbster.Domain.Test
{
    [TestClass]
    public class LeagueUnitTest : ContractUnitTest
    {
        [TestMethod]
        public void TestMethodCreate()
        {
            var newLeague = new League("TestLeague");
            Assert.IsNotNull(newLeague);
            Assert.AreEqual("TestLeague", newLeague.Name);
        }

        [TestMethod]
        public void TestMethodCreateWithLocation()
        {
            var newLeague = new League("TestLeague","Nowhere");
            Assert.IsNotNull(newLeague);
            Assert.AreEqual("TestLeague", newLeague.Name);
            Assert.AreEqual("Nowhere", newLeague.Location);
        }
    }
}
